<?php 
namespace app\model;

use think\Model;
use think\Db;

class User extends Model{
	public static function getListByPage($num){
		return Db::name('user')->where("is_delete",0)->paginate($num);
	}

	public static function getDeleteByPage($num){
		return Db::name('user')->where("is_delete",1)->paginate($num);
	}

	public static function getInfo($user_id){
		return Db::name('user')->where(["user_id"=>$user_id,"is_delete"=>0])->find();
	}
}
?>